<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>12.内置对象</title>
</head>
<body>
    <script>
        /*
        == 比较地址
        
        */
        //  创建数值 
        var n1 = new Number(10);
        var n2 = new Number(10);
        var n3 = 10
        console.log(n1 == n2); // false
        console.log(n1 === n2);
        console.log(n1 == n3);  // true  比较数值
        console.log(n1 === n3); // false 类型不一样
        
        var abc = 10.146;
        var value = abc.toFixed(2) // 5 舍留入
        console.log(value,typeof value);
    </script>
    
</body>
</html>